package com.yourbatis;

import java.util.Locale;

public enum XMLTagType {
    MAPPER,
    IF,
    WHERE,
    FOR,
    SELECT,
    UPDATE,
    INSERT,
    DELETE,
    FOREACH,
    RESULTMAP,
    ID,
    RESULT,
    EOF,
    ;

    public static XMLTagType of(String tag) {
        if (tag == null) {
            return null;
        }

        return valueOf(tag.toUpperCase());
    }
}
